package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.entity.Lose;
import com.mapper.LoseMapper;

@Service
public class LoseService {
	@Autowired
	LoseMapper loseMapper;
	
	/**插入失物*/
    public Integer insertLose(Lose lose) {
    	return loseMapper.insertLose(lose);
    }
    /**查询失物记录 */
	public List<Lose> lookLose(Lose lose){
   		return loseMapper.lookLose(lose);
   	}
	/**查询一条失物记录 */
	public Lose lookIdLose(Integer lose_id){
		return loseMapper.lookIdLose(lose_id);
	}
	/**修改一条失物的失物记录*/
	public Integer updateLose(Lose lose) {
		return loseMapper.updateLose(lose);
	}
	/**修改一条具体的失物记录*/
	public Integer updateFlagLose(Lose lose) {
		return loseMapper.updateFlagLose(lose);
	}
    /**删除一条具体的失物记录*/
	public Integer deleteLose(Integer lose_id) {
		return loseMapper.deleteLose(lose_id);
	}
}
